Application.addRoute

Add a Router rule

class Application
addRoute
(
string method
,
string path
,
HandleFunction handle
,
string group = DEFAULT_ROUTE_GROUP
)

Parameters

method string

the HTTP method.

path string

the request path.

handle HandleFunction

the delegate that handle the request.

group string

the rule's domain group.

Meta